package com.netty.client;


import com.topsoft.common.MiscHelper;

public class Test {

    static int code=0;
    public static void main( String[] args ) {
//        WebSocketClient urlSystemTest=WebSocketClient.urlSystemTest;
//
//        for(int i=0;i<10;i++){
//            JSONObject msg = new JSONObject(Misc.isDebug);
//            msg.put("__code", "" + code++);
//            msg.put("msg", TableSeq.getKeyID());
//            urlSystemTest.sendMessage("websocket.urlTiulo2Erp", null, msg);
//        }


        String msgString = "dkdk133232jsknd";

        System.out.println("原始: "+msgString);

        //加密
        msgString= MiscHelper.gzip2String(msgString);
        System.out.println("加密: "+msgString);

        msgString= MiscHelper.gunzip(msgString);
        System.out.println("解密: "+msgString);

    }
}